package com.lunar.service.impl;

import com.lunar.entity.TelVisit;
import com.lunar.mapper.TelVisitMapper;
import com.lunar.service.TelVisitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.concurrent.CompletionService;

@Service
public class TelVisitServiceImpl implements TelVisitService {

    @Autowired
    private TelVisitMapper telVisitMapper;

    @Override
    public List<TelVisit> getAllTel() {
        return telVisitMapper.selectAll();
    }

    @Override
    public int addTelVisit(TelVisit telVisit) {
        return telVisitMapper.insert(telVisit);
    }

    @Override
    public int deleteTel(int cid) {
        return telVisitMapper.deleteTel(cid);
    }

    @Override
    public List<TelVisit> selectTal(int cid) {
        return telVisitMapper.selectTal(cid);
    }

}
